package org.jeecg.modules.sggg.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.sggg.entity.SgTreatmentLog;
import org.jeecg.modules.sggg.mapper.SgTreatmentLogMapper;
import org.jeecg.modules.sggg.service.ISgTreatmentLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 转诊记录表
 * @Author: jeecg-boot
 * @Date: 2022-11-10
 * @Version: V1.0
 */
@Service
public class SgTreatmentLogServiceImpl extends ServiceImpl<SgTreatmentLogMapper, SgTreatmentLog> implements ISgTreatmentLogService {

    @Autowired
    private SgTreatmentLogMapper sgTreatmentLogMapper;

    @Override
    public IPage<SgTreatmentLog> queryList(Page<SgTreatmentLog> page, SgTreatmentLog sgTreatmentLog, String userId, String roleCode, String orgCode) {
        return this.sgTreatmentLogMapper.queryList(page, sgTreatmentLog.getName(), sgTreatmentLog.getIdCard(), sgTreatmentLog.getPhone(),sgTreatmentLog.getResponsibleAgencies(), sgTreatmentLog.getAssistId(), userId, roleCode, orgCode);
    }

    @Override
    public List<SgTreatmentLog> queryByRecord(String memberId) {
        return this.sgTreatmentLogMapper.queryByRecord(memberId);
    }

    @Override
    public List<SgTreatmentLog> queryByAssistId(String assistId) {
        return this.sgTreatmentLogMapper.queryByAssistId(assistId);
    }

    @Override
    public List<SgTreatmentLog> selectByMemberId(String member_id) {
        return this.sgTreatmentLogMapper.selectByMemberId(member_id);
    }
}
